﻿<%@ Page Language="C#" MasterPageFile="~/Master/EditMasterPage.master" AutoEventWireup="True" Inherits="Web.Plantable_Edit" Title="" Codebehind="Edit.aspx.cs" %>

<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <table class="edit_table" border="1" cellpadding="0" cellspacing="0">
        <tr>
            <td class="edit_alt_item td1">
                计划类别：</td>
            <td class="td2">
                <asp:DropDownList ID="JhTypeDropDownList" runat="server" ValidationGroup="Save"
                    newfield="JhType" newtype="string" notice="计划类别" null="false"/>
                <span ishow="false" style="color: Red;">*</span>
            </td>
            <td class="edit_alt_item td3">
                计划名称：</td>
            <td class="td4">
                <asp:TextBox ID="txt_Jh_name" runat="server" ValidationGroup="Save"
                    newfield="Jhname" newtype="string" notice="计划名称" null="false"
                    CssClass="t_common" MaxLength="500" size="500" />
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorJh_name" runat="server" 
                    ControlToValidate="txt_Jh_name" CssClass="warning" Display="Dynamic" 
                    ErrorMessage="字符数要小于500" ValidationExpression="^.{0,499}" SetFocusOnError="True" 
                    ValidationGroup="Save"></asp:RegularExpressionValidator>
               <span ishow="false" style="color: Red;">*</span>
            </td>
        </tr>
        <tr>
            <td class="edit_alt_item td1">
                计划年份：</td>
            <td class="td2">
                <asp:TextBox ID="txt_Jh_year" runat="server" ValidationGroup="Save"
                    newfield="Jhyear" newtype="string" notice="计划年份" null="True"
                    CssClass="t_num" MaxLength="10" size="10" onclick="WdatePicker({el:this.id,dateFmt:'yyyy', skin:'whyGreen'})"/>
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorJh_year" runat="server" 
                    ControlToValidate="txt_Jh_year" CssClass="warning" Display="Dynamic" 
                    ErrorMessage="字符数要小于10" ValidationExpression="^.{0,9}" SetFocusOnError="True" 
                    ValidationGroup="Save"></asp:RegularExpressionValidator>
            </td>
            <td class="edit_alt_item td3">
                申报开始时间：</td>
            <td class="td4">
                <asp:TextBox ID="txt_Sbksh_data" runat="server" ValidationGroup="Save"
                    newfield="Sbkshdata" newtype="DateTime" notice="申报开始时间" null="True" DateFormat="yyyy-MM-dd"
                    CssClass="t_date" MaxLength="8" size="8" onclick="WdatePicker({el:this.id,dateFmt:'yyyy-MM-dd', skin:'whyGreen'})"/>
            </td>
        </tr>
        <tr>
            <td class="edit_alt_item td1">
                申报截止时间：</td>
            <td class="td2">
                <asp:TextBox ID="txt_Sbjzh_data" runat="server" ValidationGroup="Save"
                    newfield="Sbjzhdata" newtype="DateTime" notice="申报截止时间" null="True" DateFormat="yyyy-MM-dd"
                    CssClass="t_date" MaxLength="8" size="8" onclick="WdatePicker({el:this.id,dateFmt:'yyyy-MM-dd', skin:'whyGreen'})"/>
            </td>
            <td class="edit_alt_item td3">
                推荐开始时间：</td>
            <td class="td4">
                <asp:TextBox ID="txt_Tjksh_data" runat="server" ValidationGroup="Save"
                    newfield="Tjkshdata" newtype="DateTime" notice="推荐开始时间" null="True" DateFormat="yyyy-MM-dd"
                    CssClass="t_date" MaxLength="8" size="8" onclick="WdatePicker({el:this.id,dateFmt:'yyyy-MM-dd', skin:'whyGreen'})"/>
            </td>
        </tr>
        <tr>
            <td class="edit_alt_item td1">
                推荐截止时间：</td>
            <td class="td2">
                <asp:TextBox ID="txt_Tjjzh_data" runat="server" ValidationGroup="Save"
                    newfield="Tjjzhdata" newtype="DateTime" notice="推荐截止时间" null="True" DateFormat="yyyy-MM-dd"
                    CssClass="t_date" MaxLength="8" size="8" onclick="WdatePicker({el:this.id,dateFmt:'yyyy-MM-dd', skin:'whyGreen'})"/>
            </td>
            <td class="edit_alt_item td3">
                受理开始时间：</td>
            <td class="td4">
                <asp:TextBox ID="txt_Shlksh_data" runat="server" ValidationGroup="Save"
                    newfield="Shlkshdata" newtype="DateTime" notice="受理开始时间" null="True" DateFormat="yyyy-MM-dd"
                    CssClass="t_date" MaxLength="8" size="8" onclick="WdatePicker({el:this.id,dateFmt:'yyyy-MM-dd', skin:'whyGreen'})"/>
            </td>
        </tr>
        <tr>
            <td class="edit_alt_item td1">
                受理截止时间：</td>
            <td class="td2">
                <asp:TextBox ID="txt_Shljzh_data" runat="server" ValidationGroup="Save"
                    newfield="Shljzhdata" newtype="DateTime" notice="受理截止时间" null="True" DateFormat="yyyy-MM-dd"
                    CssClass="t_date" MaxLength="8" size="8" onclick="WdatePicker({el:this.id,dateFmt:'yyyy-MM-dd', skin:'whyGreen'})"/>
            </td>
            <td class="edit_alt_item td3">
                处室管理：</td>
            <td class="td4">
                <%--<asp:TextBox ID="txt_Chsh_management" runat="server" ValidationGroup="Save"
                    newfield="Chshmanagement" newtype="string" notice="处室管理" null="True"
                    CssClass="t_common" MaxLength="50" size="50" />
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorChsh_management" runat="server" 
                    ControlToValidate="txt_Chsh_management" CssClass="warning" Display="Dynamic" 
                    ErrorMessage="字符数要小于50" ValidationExpression="^.{0,49}" SetFocusOnError="True" 
                    ValidationGroup="Save"></asp:RegularExpressionValidator>--%>
                <asp:DropDownList ID="Chsh_managementDropDownList" runat="server"
                    newfield="Chshmanagement" newtype="string" notice="处室管理" null="True"
                    ValidationGroup="Save" CssClass="dropdownlist" >
                </asp:DropDownList>
                <asp:CustomValidator ID="Chsh_managementCustomValidator" runat="server" 
                    ErrorMessage="必选选择处事" Display="Dynamic" ValidationGroup="Save" 
                    OnServerValidate="Chsh_managementCustomValidator_ServerValidate"></asp:CustomValidator>
               <span ishow="false" style="color: Red;">*</span>
            </td>
        </tr>
        <tr>
            <td class="edit_alt_item td1">
                计划模板：</td>
            <td class="td2">
                <asp:TextBox ID="txt_Jh_mb" runat="server" ValidationGroup="Save"
                    newfield="Jhmb" newtype="string" notice="计划模板" null="True"
                    CssClass="t_common" MaxLength="50" size="50" />
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorJh_mb" runat="server" 
                    ControlToValidate="txt_Jh_mb" CssClass="warning" Display="Dynamic" 
                    ErrorMessage="字符数要小于50" ValidationExpression="^.{0,49}" SetFocusOnError="True" 
                    ValidationGroup="Save"></asp:RegularExpressionValidator>
            </td>
            <td class="edit_alt_item td3">代码：</td>
            <td class="td4">
                <asp:TextBox ID="txt_DM" runat="server" ValidationGroup="Save"
                    newfield="DM" newtype="string" notice="代码" null="True"
                    CssClass="t_common" MaxLength="50" size="50" />
                <asp:RegularExpressionValidator ID="RegularExpressionValidatorDM" runat="server" 
                    ControlToValidate="txt_DM" CssClass="warning" Display="Dynamic" 
                    ErrorMessage="字符数要小于50" ValidationExpression="^.{0,49}" SetFocusOnError="True" 
                    ValidationGroup="Save"></asp:RegularExpressionValidator>
            </td>
        </tr>
    </table>

    <div class="edit_btn_group">
        <asp:Button ID="saveButton" CssClass="btn_Button" runat="server" OnClick="saveButton_Click" OnClientClick="return Checked();" Text="保存" ValidationGroup="Save"></asp:Button>
        &nbsp;&nbsp;
        <input type="button" ishow="true" class="btn_Button" id="returnInput" runat="server" onclick="window.close();" value="关闭" />
    </div>
</asp:Content>

